import request from "@/utils/request";

// 获取商品的图文详情
export function getItemDesc(itemId) {
  return request({
    url: "/item_descriptions/" + itemId
  });
}
// 保存商品的图文详情
export function saveItemDesc(data) {
  return request({
    url: "/item_descriptions/" + data.itemId,
    data: data,
    method: "post"
  });
}
// 更新商品的图文详情
export function updateItemDesc(data) {
  return request({
    url: "/item_descriptions/" + data.itemId,
    data: data,
    method: "put"
  });
}
